<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .point-chart {
        width: 600px;
        height: 600px;
        border: 1px solid #000;
      }
    </style>
  </head>
  <body>
    <div class="point-chart"></div>
    <script src="js/echarts.min.js"></script>
    <script>
      let myChart = echarts.init(document.querySelector(".point-chart"));
      let option = {
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          { offset: 0, color: "#00f8f9" },
          { offset: 1, color: "#0067d0" },
        ]),
        grid: {
          containLabel: true,
          left: 0,
          top: 10,
          right: 10,
          bottom: 0,
        },
        xAxis: {
          type: "category",
          data: [
            "上海",
            "广州",
            "北京",
            "深圳",
            "合肥",
            "",
            "......",
            "",
            "杭州",
            "厦门",
            "济南",
            "成都",
            "重庆",
          ],
          axisLabel: {
            show: true,
            color: "#4c9bfd",
          },
          axisTick: {
            show: false,
          },
        },
        yAxis: {
          type: "value",
          axisLabel: {
            show: true,
            color: "#4c9bfd",
          },
          axisTick: {
            show: false,
          },
          splitLine: {
            lineStyle: {
              color: "#004e61",
            },
          },
        },
        series: [
          {
            data: [
              2100,
              1900,
              1700,
              1560,
              1400,
              1200,
              1200,
              1200,
              900,
              750,
              600,
              480,
              240,
            ],
            type: "bar",
          },
        ],
      };
      myChart.setOption(option);
    </script>
  </body>
</html>
